<?php
require_once("../includes/Includes.php");
require_once("../includes/Faculty.class.php");

$faculties = Faculty::get_all_faculties();
if($faculties == false)
{
	?>
<script type="text/javascript" src="../scripts/admin.js"></script>

<form name="add_faculty_form" action="add_faculty_DB.php" method="post">
	<table>
     <tr>
     	<td> Name : </td>
     	<td><input type="text" name="name" /></td>
     	<td class="required last_check">  </td>
     </tr>    
       
     <tr>
     	<td> Position: </td>
     	<td><input type="text" name="position" /></td>
     	<td class="required last_check"> </td>
     </tr>
     
     <tr>
     	<td> Description : </td>
     	<td><input type="text" name="description" /></td>
     	<td class="required last_check"> </td>
     </tr>
     <tr>
     	<td> Date : </td>
     	<td><input type="date" name="date" /></td>
     	<td class="required last_check"> </td>
     </tr>
     <tr>
        <td></td>
        <td></td>
        <td><input id="submit" type="button" value="Submit" onclick="validate_add_faculty_form()"></td>
     </tr>	

<?php
}
else
{
header("Location: admin_home.php");
}
?> 